home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / indiana.swf / scripts / frame_5 / PlaceObject2_257_603 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  747 b   |  38 lines

  1. onClipEvent(enterFrame){
  2.    if(Key.isDown(39))
  3.    {
  4.       this._x += moveSpeed;
  5.       this.gotoAndPlay("right");
  6.    }
  7.    else if(Key.isDown(38))
  8.    {
  9.       this._y -= moveSpeed;
  10.       this.gotoAndPlay("up");
  11.    }
  12.    else if(Key.isDown(40))
  13.    {
  14.       this._y += moveSpeed;
  15.       this.gotoAndPlay("down");
  16.    }
  17.    else if(Key.isDown(37))
  18.    {
  19.       this._x -= moveSpeed;
  20.       this.gotoAndPlay("left");
  21.    }
  22.    if(this.hitTest(_root.hole) && keyK == 2)
  23.    {
  24.       this.gotoAndStop("yeah");
  25.       stopAllSounds();
  26.       _root.gotoAndPlay("star");
  27.    }
  28.    if(this.hitTest(_root.out))
  29.    {
  30.       this._y -= moveSpeed;
  31.    }
  32.    if(this.hitTest(_root.key))
  33.    {
  34.       keyK = 2;
  35.       _root.key.gotoAndStop(2);
  36.    }
  37. }
  38.